package com.example.pattern.command;

/**
 * 调用者类 - 遥控器
 *
 * @author FM_南风
 * @date 2024/7/5
 */
public class RemoteControl {
    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void pressButton() {
        command.execute();
    }
}
